package com.djinfo.work.common.bean;
import java.util.HashMap;


/**
 * json格式
 */
public class AjaxJson {
	private static final long serialVersionUID = 1L;
	public String msg = "success";
	public int code=200;
	public HashMap<String,Object> result;
	public void  error(){
		this.msg="error";
	}
	public void  error(String msg){
		this.msg=msg;
	}
	public void setResult(HashMap<String,Object> result){
		this.result=result;
	}

	public HashMap<String, Object> getResult() {
		return result;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}
}
